package cn.jiyun.controller;



import cn.jiyun.service.PackageMiddleOrderService;
import cn.jiyun.service.PackageService;
import com.jiyun.Result.Result;
import com.jiyun.common.pojo.product.PackageMiddleOrder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.github.pagehelper.PageInfo;

/**
 * (PackageMiddle Order)表控制层
 *
 * @author makejava
 * @since 2024-11-20 19:58:35
 */
@RestController
@RequestMapping("carProduct/packageMiddleOrder")
@Slf4j
public class PackageMiddleOrderController {

    @Autowired
    private PackageMiddleOrderService packageMiddleOrderService;

    @PostMapping("findSubstitution")
    public Result findSubstitution(@RequestBody PackageMiddleOrder packageMiddleOrder){
        log.info("packageMiddleOrder:{}",packageMiddleOrder);
        packageMiddleOrderService.findSubstitution(packageMiddleOrder);
        return Result.ok();
    }

}

